{{#extends @html/widget/hp/widget.html}}

{{:widget_class}}pg-feed wg-feed{{/:widget_class}}

{{:widget_body}}
	<div class="list-"><div class="item-">
		<h3 class="header-"><a href="{{/}}{{community.url}}/{{widget.content.post.oid}}" class="doctype-doc-link">{{widget.header}}</a></h3>
		<div class="meta-">
		{{?widget.content.platonicaid_author}}
			<a href="{{widget.content.platonicaid_author.url}}"><img src="{{widget.content.platonicaid_author.avatar_url}}" alt="" class="avatar-" /></a>
			<a href="{{widget.content.platonicaid_author.url}}" class="user- service-user">{{widget.content.platonicaid_author.name}}</a>
		{{?:}}
			<a href="{{/}}{{community.url}}/members/{{widget.content.poster.oid}}"><img src="{{?!widget.content.poster.avatar}}{{!static type='images' 'avatar-22x22.png'}}{{?:}}{{/}}{{widget.content.poster.avatar | link_to 'imagestorage' 'sm2'}}{{/?}}" alt="" class="avatar-" /></a>
			<a href="{{/}}{{community.url}}/members/{{widget.content.poster.oid}}" class="user-">{{widget.content.poster.name}}</a>
		{{/?}}
			{{widget.content.post.ctime|date "%d %M %Y, в %H:%i"}}
		</div>
		<div class="typography body-">
			<p>{{widget.body | safe}}</p>
		</div>
		<ul class="comments-">
		{{?widget.content.post.commentscount}}
			<li><a href="{{/}}{{community.url}}/{{widget.content.post.oid}}?showcomments#comments" class="comments-">{{!plural widget.content.post.commentscount "комментари" "й" "я" "ев" sep=" "}}</a></li>
		{{?:}}
			<li>Комментариев пока нет</li>
		{{/?}}
		</ul>
	</div></div>
{{/:widget_body}}

{{:content widget.item_not_set}}
	<div class="typography"><p>Не выбрана запись.</p></div>
{{/:content}}